package com.runjian.rundo.iot.agent.common.network.tcp.client.config;

import com.runjian.rundo.iot.agent.common.network.core.config.BaseNetworkClientProperties;

import io.netty.handler.logging.LogLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * tcp透传客户端网络组件配置
 *
 * @author CaoQingHua
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class TcpNetworkClientProperties extends BaseNetworkClientProperties {

    /**
     * 客户端地址
     */
    private String host;

    /**
     * 端口号
     */
    private int port;

    /**
     * 读空闲时(秒)
     */
    private int readerIdleTimeSeconds = 60;

    /**
     * 写空闲时(秒)
     */
    private int writerIdleTimeSeconds = 60;

    /**
     * 日志级别
     */
    private LogLevel logLevel = LogLevel.INFO;

}
